package com.wy.dao;

import com.wy.bean.ComplainBean;
import com.wy.model.sys.ComplainEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ComplainMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ComplainEntity record);

    int insertSelective(ComplainEntity record);

    ComplainEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ComplainEntity record);

    int updateByPrimaryKey(ComplainEntity record);

    int deleteByPrimaryKeys(@Param("ids")List<String> groupId);

    List<ComplainBean> complainList(@Param("pageSize") int pageSize,
                                    @Param("start")int start,
                                    @Param("content")String content,
                                    @Param("type") String type,
                                    @Param("status")String status,
                                    @Param("operator")String operator,
                                    @Param("complainTimeStart")String complainTimeStart,
                                    @Param("complainTimeEnd")String complainTimeEnd,
                                    @Param("uid")Integer uid,
                                    @Param("rids")List<String> rids);

    int  complainSize(@Param("pageSize") int pageSize,
                                    @Param("start")int start,
                                    @Param("type") String type,
                                    @Param("content")String content,
                                    @Param("status")String status,
                                    @Param("operator")String operator,
                                    @Param("complainTimeStart")String complainTimeStart,
                                    @Param("complainTimeEnd")String complainTimeEnd,
                                    @Param("uid")Integer uid,
                                    @Param("rids")List<String> rids);
}